<ng-container *ngIf="showImgFile; else showText">
    <img nz-image [nzSrc]="fileUrl" alt="" />
</ng-container>
<ng-template #showText>
    <span nz-tooltip (dblclick)="copyItem()" [nzTooltipTitle]="fileUrl">{{ fileUrl }}</span>
</ng-template>
